
# coding: utf-8

# In[1]:

#1 - Import the numpy package under the name np (以np的名称导入numpy包)
import numpy as np


# In[5]:

#2 - Print numpy version and configuration
np.__version__


# In[6]:

np.show_config


# In[18]:

#3 - How to find the memory size of any array (找出数组的内存大小)
Z = np.zeros((10,10))
print("%d bytes" % (Z.size * Z.itemsize))


# In[19]:

#4 -  How to get the documentation of the numpy add function from the command line? (在命令行中得到numpy关于add函数的文档)


# In[20]:

get_ipython().magic('pinfo np.add')


# ?np.add()



